//
//  ZFBMineFlowLayout.m
//  HMPay
//
//  Created by HaoYoson on 16/7/2.
//  Copyright © 2016年 HaoYoson. All rights reserved.
//

#import "ZFBMineFlowLayout.h"

@interface ZFBMineFlowLayout ()

//// 所有attr的数组
//@property (strong, nonatomic) NSMutableArray *attrs;

@end

@implementation ZFBMineFlowLayout

- (void)prepareLayout {
    [super prepareLayout];

    self.minimumLineSpacing = 1;
    self.minimumInteritemSpacing = 1;

    self.sectionInset = UIEdgeInsetsMake(0, 0, 16, 0);

    //    self.attrs = [NSMutableArray array];
    //
    //    // ---------第一组布局---------
    //    UICollectionViewLayoutAttributes *firstAttr = [UICollectionViewLayoutAttributes layoutAttributesForCellWithIndexPath:[NSIndexPath indexPathForItem:0 inSection:0]];
    //
    //    firstAttr.frame = CGRectMake(0, 0, self.collectionView.bounds.size.width, 140);
    //
    //    [self.attrs addObject:firstAttr];
    //    // ---------第一组布局---------
    //
    //    // ---------第二组布局---------
    //    UICollectionViewLayoutAttributes *secondAttr = [UICollectionViewLayoutAttributes layoutAttributesForCellWithIndexPath:[NSIndexPath indexPathForItem:0 inSection:0]];
    //
    //    secondAttr.frame = CGRectMake(0, 0, self.collectionView.bounds.size.width, 140);
    //
    //    [self.attrs addObject:firstAttr];
    //    // ---------第二组布局---------
    //
}

@end
